Fifth Example

Tables

The markup language of memo() supports tables using the same markup syntax as HTML:

Code:

<table>
<tr>
<td>foo</td>
<td>bar</td>
<td>baz</td>
</tr>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
</tr>
</table>

    

Result:

foobarbaz
ABC

You can specify the name of a table style as the class attribute of the <table> tag:

Code:

<table class="DataTable">
<tr>
<td>foo</td>
<td>bar</td>
<td>baz</td>
</tr>
<tr>
<td>A</td>
<td>B</td>
<td>C</td>
</tr>
</table>

    

Result:

foobarbaz
ABC

You can omit closing tags if the parser can close them automatically. This was valid HTML in the beginnings of the Internet, and modern browsers still render it correctly:

Code:

    
<table>
<tr>
<td>foo
<td>bar
<td>baz
<tr>
<td>A
<td>B
<td>C
</table>
    
    

Result:

foo bar baz
A B C